package com.service.impl;

import com.alibaba.fastjson.JSON;
import com.entity.TbClass;
import com.mapper.TbClassMapper;
import com.service.TbClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository("tbClassService")
public class TbClassServiceImpl implements TbClassService {

    @Autowired
    private TbClassMapper tbClassMapper;

    @Override
    public void doTestSpringWithMybatis() {
        TbClass tbClass = tbClassMapper.selectTbClassByCode("2301");
        System.out.println(JSON.toJSONString(tbClass));
    }
}
